package review2;

public class SpcialPrime {

	public static void main(String[] args) {
		//
		int start = 1;
		int temp = start;
		for (int i = 1; i < 32; i++) {
			start = 2 * start;
			temp = start - 1;
			if (temp > 2100000000)
				break;

			if (temp == 1)
				continue;
			// 判断temp是不是质数
			int s = 2, e = (int) Math.ceil(Math.sqrt(temp));
			boolean isZhi = true;
			for (int j = s; j <= e; j++) {
				if (temp % j == 0) {
					isZhi = false;
					break;
				}
			}
			if (isZhi)
				System.out.println(temp + "\t");

		}

	}

}
